package com.markus.basic.Java比较器;

import java.util.Arrays;

/**
 * Author:markusZhang
 * Date:Create in 2020/9/12 23:20
 * todo:
 */
public class TestDemo {
    public static void main(String[] args) {
        Integer []arr = {1,4,2,3,6,5,8,7};
        Arrays.sort(arr,new ComparatorDemo());
        for (Integer integer : arr) {
            System.out.print(integer+" ");
        }
    }
}
